// pages/maketip/maketip.js

Page({
  data: {
    subs:[
      {
        name:"抟土",
        id:1,
        img:'/images/step/step1.png',
        name1:"一、抟土",
        isActive:false,
        imagesrc:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20170926%2F968aaf72ab474875a8b8ecc54b0484f6.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674455938&t=4600e7ac034c2953805904100458297c',
        content:"即炼泥、揉泥。采取瓷石，通过操作将其制成砖状的泥块，再用水调和泥块，去掉渣质，用双手搓揉，把泥团中的空气挤压出来，并使泥中的水分均匀。目的在于排空泥料中的气泡，使泥料进一步紧致。"
      },
      {
        name:"拉坯",
        id:2,
        img:'/images/step/step2.png',
        name1:"二、拉坯",
        isActive:false,
        imagesrc:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20171213%2Fae31dcdde8bb4d96bbadd593d23041f2.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674455976&t=f7a49ee104a3969e6606989e3098a367',
        content:"又叫做坯。拉制出坯体的大致模样，是瓷具成型的第一道工序。"
      },
      {
        name:"挂釉",
        id:3,
        img:'/images/step/step3.png',
        name1:"三、挂釉",
        isActive:false,
        imagesrc:'https://t12.baidu.com/it/u=3882009177,174877022&fm=30&app=106&f=PNG?w=640&h=480&s=055518CE660B155741EEBCB80300C018',
        content:"圆器制作，若是器内没有装饰的，需要先上里釉。器物外面的釉是第二次浸釉。釉一般以石英、长石、粘土等为原料。陶瓷施釉的方法有：喷、吹、浸、浇、荡等方法。普通圆器采用醮釉或荡釉，而琢器或大型圆器用吹釉。"
      },
      {
        name:"画花",
        id:4,
        img:'/images/step/step4.png',
        name1:"四、画花",
        isActive:false,
        imagesrc:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.qunarzz.com%2Ftravel%2Fd5%2F1811%2F2a%2F5e01893a6b3598b5.jpg_r_720x480x95_a9a12c50.jpg&refer=http%3A%2F%2Fimg1.qunarzz.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674456163&t=9ad5b9f7ed836c954567912ee19a735d',
        content:"指用青花色料在坯上画纹饰。常用用竹、骨或铁制的刀具在已干的坯体上刻画。"
      },
      {
        name:"入窑",
        id:5,
        img:'/images/step/step5.png',
        name1:"五、入窑",
        isActive:false,
        imagesrc:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F12828206477%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674456219&t=825ceadca82057d2866d95ecbeaa4c58',
        content:"首先把陶瓷制品装入匣钵，匣是陶瓷制品焙烧的容器，以耐火材料制成，作用是防止瓷坯与窑火直接接触，避免污染。烧窑时间过程约一昼夜，温度在1300度左右。先砌窑门，点火烧窑，燃料是松柴，把椿工需要测看火候，掌握窑温变化，决定停火时间。"
      }
    ],
    kindname:[],
    showModal: false,
 
  },
  sub:function(e){
    const {index} = e.currentTarget.dataset;
    let {kindname} = this.data;
    kindname.forEach((v,i)=>i===index?v.isActive=true:v.isActive=false);
    this.setData({
      showModal: true,
      subs:kindname,
    })
  },
  close2() {
    this.setData({
      showModal: false
    })
  },
  onLoad: function (options) {
    this.setData({
        kindname: this.data.subs
      })
  }
})